<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/22
  Time: 13:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户注册</title>
</head>
<body>
<form method="post" action="doUserCreate.jsp" name="registerfrm" id="registerfrm">
    <%--<form method="get" action="doUserCreate.jsp" name="registerfrm" id="registerfrm">--%>
        <table class="tb" border="0" cellspacing="5" cellpadding="0" align="center">
            <tr>
                <td align="center" colspan="2" style="text-align:center;" class="text_tabledetail2">用户注册</td>
            </tr>
            <tr>
                <td class="text_tabledetail2">用户名</td>
                <td><input name="username" type="text"></td>
            </tr>
            <tr>
                <td class="text_tabledetail2">密码</td>
                <td><input name="password" type="password"></td>
            </tr>
            <tr>
                <td class="text_tabledetail2">确认密码</td>
                <td><input name="con_password" type="password"></td>
            </tr>
            <tr>
                <td class="text_tabledetail2">email</td>
                <td><input name="email" type="text"></td>
            </tr>
            <tr>
                <td class="text_tabledetail2">爱好</td>
                <td>
                    <input type="checkbox" name="hobby" value="swim"/>游泳<br/>
                    <input type="checkbox" name="hobby" value="read"/>阅读<br/>
                    <input type="checkbox" name="hobby" value="climb"/>爬山<br/>
                    <input type="checkbox" name="hobby" value="trip"/>旅游<br/>
                </td>
            </tr>
            <tr>
                <td style="text-align:center;" colspan="2">
                    <button type="submit" class="page-btn" name="save">注册</button>
                    <button type="button" class="page-btn" name="return"
                            onclick="javascript:location.href='../index.jsp'">返回</button>
                </td>
            </tr>
        </table>
</form>
<%
    out.println(session.getId());
    Object omess = request.getAttribute("mess");
    if (omess!=null){
        out.println(omess);
    }
%>
</body>
</html>
